package com.py.framework.entity;

import com.py.framework.core.entity.BaseEntity;

/**
 * 菜单资源实体
 * @author Leegern
 * @date   2018年4月23日
 */
public class MenuEntity extends BaseEntity {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -7497712779323270387L;
	/** 菜单名称 **/
	private String menuName;
	/** 父节点ID **/
	private long parentId;
	/** 所有父节点 **/
	private String allParentId;
	/** 菜单类型，1：子系统，2：模块，3：功能，4：资源 **/
	private int menuType;
	/** 后台路由 **/
	private String linkUrl;
	/** 前台路由地址 **/
	private String routeAddr;
	/** ICON图标 **/
	private String icon;
	/** 排序 **/
	private int orderBy;
	/** 是否显示，1：是，2：否 **/
	private int isShow;
	/** 是否新窗口打开，1：是，2：否 **/
	private int isWinOpen;
	/** 父节点名称  **/
	private String parentMenuName;
	/** 菜单级别 1:一级 2:二级 3:三级 4:四级 */
	private int menuLevel;
	
	/**
	 * @return the menuName
	 */
	public String getMenuName() {
		return menuName;
	}
	/**
	 * @param menuName the menuName to set
	 */
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	/**
	 * @return the parentId
	 */
	public long getParentId() {
		return parentId;
	}
	/**
	 * @param parentId the parentId to set
	 */
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	/**
	 * @return the allParentId
	 */
	public String getAllParentId() {
		return allParentId;
	}
	/**
	 * @param allParentId the allParentId to set
	 */
	public void setAllParentId(String allParentId) {
		this.allParentId = allParentId;
	}
	/**
	 * @return the menuType
	 */
	public int getMenuType() {
		return menuType;
	}
	/**
	 * @param menuType the menuType to set
	 */
	public void setMenuType(int menuType) {
		this.menuType = menuType;
	}
	/**
	 * @return the linkUrl
	 */
	public String getLinkUrl() {
		return linkUrl;
	}
	/**
	 * @param linkUrl the linkUrl to set
	 */
	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}
	/**
	 * @return the icon
	 */
	public String getIcon() {
		return icon;
	}
	/**
	 * @param icon the icon to set
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}
	/**
	 * @return the orderBy
	 */
	public int getOrderBy() {
		return orderBy;
	}
	/**
	 * @param orderBy the orderBy to set
	 */
	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}
	/**
	 * @return the parentMenuName
	 */
	public String getParentMenuName() {
		return parentMenuName;
	}
	/**
	 * @param parentMenuName the parentMenuName to set
	 */
	public void setParentMenuName(String parentMenuName) {
		this.parentMenuName = parentMenuName;
	}
	/**
	 * @return the routeAddr
	 */
	public String getRouteAddr() {
		return routeAddr;
	}
	/**
	 * @param routeAddr the routeAddr to set
	 */
	public void setRouteAddr(String routeAddr) {
		this.routeAddr = routeAddr;
	}
	/**
	 * @return the isShow
	 */
	public int getIsShow() {
		return isShow;
	}
	/**
	 * @param isShow the isShow to set
	 */
	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}
	/**
	 * @return the isWinOpen
	 */
	public int getIsWinOpen() {
		return isWinOpen;
	}
	/**
	 * @param isWinOpen the isWinOpen to set
	 */
	public void setIsWinOpen(int isWinOpen) {
		this.isWinOpen = isWinOpen;
	}

	/**
	 * @return the menuLevel
	 */
	public int getMenuLevel() {
		return menuLevel;
	}

	/**
	 * @param menuLevel
	 *            the menuLevel to set
	 */
	public void setMenuLevel(int menuLevel) {
		this.menuLevel = menuLevel;
	}

	@Override
	public String toString() {
		return "MenuEntity [menuName=" + menuName + ", parentId=" + parentId + ", allParentId=" + allParentId
				+ ", menuType=" + menuType + ", linkUrl=" + linkUrl + ", routeAddr=" + routeAddr + ", icon=" + icon
				+ ", orderBy=" + orderBy + ", isShow=" + isShow + ", isWinOpen=" + isWinOpen + ", parentMenuName="
				+ parentMenuName + ", menuLevel=" + menuLevel + "]";
	}
}